<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<!-- Tests that the background for a document in flipped blocks writing mode
is painted and invalidated properly when scrolled. Test passes if the document
background is painted green throughout the margin surrounding the explicitly
sized light blue div. -->
<style>
html {
    background-color: green;
    writing-mode: vertical-rl;
}
</style>
<div style="width: 1500px; background: lightBlue;"></div>
<script>
function repaintTest() {
  window.scrollTo(-2000, 0);
}
onload = runRepaintAndPixelTest;
</script>
